
{%include file="header.html" %}  
<div class="break"></div>
<div class="tucao_body ">
<h3 class="tucao_title">留言板啊，有啥好意见@我啊（@民工哥3）</h3>
	<div class="tucao_list">
		<ul>
		{%section name="count" loop=$g_show.list%}
		<li><div class="user_info"><div class="user_icon"><a href="#"><img width=80 height=80 src="http://tp1.sinaimg.cn/{%$g_show.list[count].uid%}/180/5640756639/1"></a></div><div class="user_name">{%$g_show.list[count].user_info.user_nickname%}<br></div></div>
		  
		 
		  <div class="content">
		   <p class="list_title">
		    <span class="content_left"> {%$g_show.list[count].id%} 楼  {%$g_show.list[count].title%} </span>
		   <span class="content_right"> 发表于 {%$g_show.list[count].create_time%}  </span>
		  </p>
		  <div class="content_other">
		  
			<br>
			{%$g_show.list[count].content%}
			  </div>
		  
		  </div>
		  
		</li>
		{%/section%}
		<li class="page">{%$g_show.page_bar%}</li>
		</ul>
		
	</div>

{%if $g_show.current_user_info.user_nickname%}
	<div class="tucao_form">
	<div class="user_info">
	<div class="user_icon">
	<a href="#"><img src="{%$g_show.current_user_info.user_pic%}"></a>
	</div>
	<div class="user_name">{%$g_show.current_user_info.user_nickname%}<br></div></div>
	<div class="content">
	<div class="" style=" font-size: 18px;margin-top:20px;margin-left:10px;
    height: 30px;
    line-height: 30px;
    floast:left;
    width: 200px;">
	<input type="text" name="tucao_title" id="tucao_title" size=70>
	</div>
	<div class="tucao_content">
	<textarea name="tucao_content" id="tucao_content" ></textarea>
	</div>
	<div class="tucao_button"> 
	<div class="tucao_submit btn-large "><a><b class="white">确 定</b></a></div>
	</div>
	</div>
	</div>
	<div class="break"></div>
</div>

{%else%}

	<div class="tucao_form">
请在右上角登录后发言！
	<div class="break"></div>
</div>
{%/if%}
	

{%include file="footer.html" %}   





<script src ="/js/jquery/jquery.js"></script>
<script src ="/js/common/user_message.js"></script>
<script type="text/javascript" language="javascript">


YOUXIXIU.MAIN.CheckMessage.init();


$(".tucao_submit").bind("click",function(){

	$.ajax({
		url:"/interface/tucao/json_tucao_post.php",
		type:"post",
		data:"title="+$("#tucao_title").val()+"&content="+$("#tucao_content").val(),
		dataType:"json",
    complete:function(xhr,status){
      var result = eval("("+(xhr.responseText)+")");
			
			if(result.error == "0"){
			alert("成功");
				location.reload();                   
			}else{
				var errmsg = result.errmsg;
				alert(errmsg)
			}

			widget = null;
		}
	});
});
</script>

